﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ControlPress
{
    class myPoint
    {
        // 用属性的方式做.

        private Decimal x;
        private Decimal y;
        private int index;
        private bool handled;


        public myPoint()
        {
            x = 0.0m;
            y = 0.0m;
            handled = false;
        }

        public bool Handle
        {
            get { return handled; }
            set { handled = value; }
        }

        public int Index
        {
            get { return index; }
            set { index = value; }
        }


        public Decimal X
        {
            get { return x; }
            set { x = value; }
        }

        public Decimal Y
        {
            get { return y; }
            set { y = value; }
        }

    }
}
